import request from '@/utils/request'

// 查询实时订单簿列表
export function listSwaprealtimeorderbookbak(query) {
  return request({
    url: '/swaprealtimeorderbook/swaprealtimeorderbookbak/list',
    method: 'get',
    params: query
  })
}

// 查询实时订单簿详细
export function getSwaprealtimeorderbookbak(id) {
  return request({
    url: '/swaprealtimeorderbook/swaprealtimeorderbookbak/' + id,
    method: 'get'
  })
}

// 新增实时订单簿
export function addSwaprealtimeorderbookbak(data) {
  return request({
    url: '/swaprealtimeorderbook/swaprealtimeorderbookbak',
    method: 'post',
    data: data
  })
}

// 修改实时订单簿
export function updateSwaprealtimeorderbookbak(data) {
  return request({
    url: '/swaprealtimeorderbook/swaprealtimeorderbookbak',
    method: 'put',
    data: data
  })
}

// 删除实时订单簿
export function delSwaprealtimeorderbookbak(id) {
  return request({
    url: '/swaprealtimeorderbook/swaprealtimeorderbookbak/' + id,
    method: 'delete'
  })
}
